{% extends "base.html" %} {% block title %}Doctor Profile - Quick Care Connect{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if doctor.user.profile_picture %} {{ doctor.user.name }}
{{ doctor.user.name[0].upper() }}
{% else %}
{{ doctor.user.name[0].upper() }}
{% endif %}

{{ doctor.user.name }}

{{ doctor.specialization|title }}

{{ doctor.city|title }}, Pakistan
{% if is_approved %} Approved & Verified {% elif is_pending %} Pending Approval {% elif is_rejected %} Rejected {% elif is_suspended %} Suspended {% endif %} {% if is_approved %} Edit Profile {% endif %}
{% if is_rejected and not is_suspended %} {% elif is_pending %} {% elif is_suspended %} {% endif %}
{{ stats.total_appointments }}
Total Appointments
{{ stats.pending_appointments }}
Pending
{{ stats.completed_appointments }}
Completed
{{ stats.total_blogs }}
Blog Posts
{% if doctor.bio %} {% endif %}

Quick Actions

Appointments {% if is_approved %} Write Blog Answer Q&A {% endif %} {% if is_approved %} Edit Profile Appointment Settings {% endif %}

Recent Appointments

View All
{% if recent_appointments %} {% for appointment in recent_appointments %}
{{ appointment.patient.user.name }}
{{ appointment.disease_category }} {{ appointment.appointment_date.strftime('%B %d, %Y') }} {{ appointment.appointment_time.strftime('%I:%M %p') }} {{ appointment.appointment_type|title }}
{% if appointment.status == 'pending' %} Pending {% elif appointment.status in ['approved', 'completed'] %} {% if appointment.payment_status == 'approved' %} {% if appointment.status == 'completed' %}View Chat{% else %}Chat{% endif %} {% endif %} Approved {% elif appointment.status == 'completed' %} Completed {% else %} {{ appointment.status|title }} {% endif %}
{% endfor %} {% else %}

No appointments yet

{% endif %}

Recent Blog Posts

View All
{% if recent_blogs %} {% for blog in recent_blogs %}
{{ blog.title }}

{{ blog.excerpt or blog.content[:150] }}...

{{ blog.created_at.strftime('%B %d, %Y') }}
{% if blog.status == 'published' %} Published {% elif blog.status == 'pending' %} Pending {% else %} {{ blog.status|title }} {% endif %}
{% endfor %} {% else %}

No blog posts yet

{% if is_approved %} Create Your First Blog {% endif %}
{% endif %}

Q&A Activity

View All
{% if unanswered_questions %}
Unanswered Questions ({{ unanswered_questions|length }})
{% for question in unanswered_questions %}
{{ question.title }}

{{ question.content[:150] }}...

{{ question.created_at.strftime('%B %d, %Y') }} {{ question.category|title }}
Answer
{% endfor %} {% endif %} {% if recent_answers %}
Recent Answers ({{ recent_answers|length }})
{% for answer in recent_answers %}
{{ answer.question.title }}

{{ answer.content[:150] }}...

{{ answer.created_at.strftime('%B %d, %Y') }}
{% endfor %} {% endif %} {% if not unanswered_questions and not recent_answers %}

No Q&A activity yet

{% if is_approved %} Browse Questions {% endif %}
{% endif %}
{% endblock %}